import request from '@/utils/request'

// 查询条码规则与产品关联列表
export function listItem(query) {
    return request({
        url: '/mes/md/barcodeitem/list',
        method: 'get',
        params: query
    })
}

// 查询条码规则与产品关联详细
export function getItem(id) {
    return request({
        url: '/mes/md/barcodeitem/' + id,
        method: 'get'
    })
}

// 新增条码规则与产品关联
export function addItem(data) {
    return request({
        url: '/mes/md/barcodeitem',
        method: 'post',
        data: data
    })
}

// 修改条码规则与产品关联
export function updateItem(data) {
    return request({
        url: '/mes/md/barcodeitem',
        method: 'put',
        data: data
    })
}

// 删除条码规则与产品关联
export function delItem(id) {
    return request({
        url: '/mes/md/barcodeitem/' + id,
        method: 'delete'
    })
}

// 查询条码规则与产品关联列表
export function getList(query) {
    return request({
        url: '/mes/md/barcodeitem/getList',
        method: 'get',
        params: query
    })
}
